gtkplacessidebar: improve heuristics for external drives
authorCarlos Soriano <csoriano@gnome.org>
Wed, 14 Oct 2015 19:42:16 +0000 (21:42 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Thu, 15 Oct 2015 17:16:56 +0000 (19:16 +0200)
commit0cd4e7ec43a07ae8dc77231bef25ee792ddda529
tree696463b51bbb24a147f5bc98676027c8288ac5ef
parent11ee4b40af850c3c271b6c5fce64cdd0a9066594
gtkplacessidebar: improve heuristics for external drives

Since the change to use GtkPlacesView we don't want to show
internal storage on the sidebar.

In our case we were checking for drive_can_eject and
drive_is_media_removable.

However for some external hard drives it's reported that they
are not ejectable nor the have removable media. So the only
attribute that they have different from internal drives is that
they can be stopped.
So check for if the drive can be stopped to decide if it is
external or internal.

On the way realized we don't need to check for the mounts associated
with the volume to know if the volume can be ejected or not. So remove
that code.

https://bugzilla.gnome.org/show_bug.cgi?id=756589
gtk/gtkplacessidebar.c